package pwd.allen.behavior.state;

/**
 * @author 门那粒沙
 * @create 2021-05-22 20:54
 **/
public class ConcreteStateA extends State {
    @Override
    public void Handle(Context context) {
        // 状态为A时执行逻辑，然后状态改为B
        System.out.println("当前状态是A.");
        context.setState(new ConcreteStateB());
    }
}
